package cn.zswltech.gruul.web.api.util;

import org.springframework.boot.system.ApplicationHome;
import org.springframework.stereotype.Component;

/**
 * @author xuluquan
 * @date 2020-04-15 22:43
 */
@Component("coreCommonUtil")
public class CommonUtil {

    public  String getBaseDir() {
        ApplicationHome h = new ApplicationHome(CommonUtil.class);
        return h.getSource().getParentFile().toString() + "/";
    }
}
